<%--
  Created by IntelliJ IDEA.
  User: wang'rong'ze
  Date: 2022/8/15
  Time: 9:25
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="/static/css/index2.css" rel="stylesheet">
    <script src="/static/js/jquery-3.2.1.js"></script>
</head>
<body>
<center>
    <form action="/list" method="post">
        部门名称：<input type="text" name="dept" value="${dept}"><br>
        <button>查询</button>
    </form>
    <table>
        <tr>
            <td>编号</td>
            <td>账号</td>
            <td>用户名称</td>
            <td>手机号码</td>
            <td>部门名称</td>
            <td>创建时间</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${list}" var="u">
            <tr>
                <td>${u.id}</td>
                <td>${u.username}</td>
                <td>${u.name}</td>
                <td>${u.phone}</td>
                <td>${u.dept}</td>
                <td>
                    <fmt:formatDate value="${u.created}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
                </td>
                <td>${u.statu}</td>
                <td>
                    <button>详情</button>
                </td>
            </tr>
        </c:forEach>
    </table>
</center>
</body>
</html>
